<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:pou="http://primefaces.org/ui" >
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
        <title><h:outputText value="MICredit" /></title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>

    <h:body>
        <h:form id="micreditform" enctype="multipart/form-data" >  
            <pou:dialog widgetVar="idleDialog" closable="false" modal="true" header="Tiempo Inactivo">
                Su sesión a expirado, haga click en 
                <h:outputLink rendered="#{usuarioFc.loged}" style="color: black;" 
                              value="#{facesContext.externalContext.requestContextPath}/SessionManager">Continuar</h:outputLink>
            </pou:dialog>
            <pou:dialog closable="false" modal="true" header="Cargando" widgetVar="dlgwait">
                Espere un momento...<br />
                <h:graphicImage width="16" height="16" library="images" name="ajaxloader2.gif" />
            </pou:dialog> 
            <h:outputStylesheet name="default.css" library="css" ></h:outputStylesheet>
            <h:outputStylesheet name="cssLayout.css" library="css" ></h:outputStylesheet>
            <h:outputStylesheet name="buttons.css" library="css" ></h:outputStylesheet>
                <div  id="top" class="top" style="font-family:Tahoma,Arial,sans-serif; color: #000000; font-size: 30px; font-weight: bold;">
                <ui:insert name="top">
                    <h:panelGroup style="float:left;" layout="block">
                        <h:panelGrid style="font-size: 16px; color: #666666;" columns="3">
                            <h:graphicImage library="images" name="unopetrollogo.jpg" />
                            <h:panelGrid rendered="#{usuarioFc.loged}" columns="2">
                                <h:outputText value="Usuario: " ></h:outputText>
                                <h:outputText value="#{usuarioFc.usuario}" /> 
                            </h:panelGrid>
                            <h:panelGroup rendered="#{usuarioFc.loged}" layout="span">|&nbsp;
                                <h:outputLink  style=" color: #666666;" value="#{facesContext.externalContext.requestContextPath}/SessionManager"> Salir</h:outputLink>
                            </h:panelGroup>
                        </h:panelGrid>
                    </h:panelGroup>
                </ui:insert>
                <ui:insert name="top">
                    <h:panelGroup style="float:right;" layout="block">
                        <h:graphicImage height="40" library="images" name="ealogo.png" />
                    </h:panelGroup>
                </ui:insert>
            </div>
            <div style="float: left; width: 100%;" id="menu" >
                <ui:insert name="menu">
                    <ui:include src="menu.xhtml"/>
                </ui:insert>
            </div>
            <div style="float: left; width: 100%; height: auto; margin-bottom: 15px;">
                <div id="content" style="font-size:11px !important;  width: 100%; ">
                    <ui:insert  name="content">
                        <ui:include src="login.xhtml"/>
                        <ui:include src="#{mbIndex.contentPage}" />
                    </ui:insert>
                </div>
            </div>

        </h:form>
        <h:panelGroup class="ui-menu ui-menubar ui-widget ui-widget-content ui-corner-all ui-helper-clearfix" 
                      layout="block" style=" width: 100%; bottom: 0; position: fixed;  float: left; font-size: 12px; color: #777; margin-bottom: 2px;">
            <h:panelGrid columns="4">
                <h:outputText value="Version 1.0" />
                <h:outputText value="/ 2013" />
                <h:outputText value="/ Desarrollado por EaSoftware" />
                <h:outputText value="/ Guatemala" />
            </h:panelGrid>
        </h:panelGroup>
        <br />
        <h:link outcome="/asoffStore/List" value="Show All AsoffStore Items"/>
        <br />
        <h:link outcome="/cargadatos/List" value="Show All Cargadatos Items"/>
        <br />
        <h:link outcome="/perfilDatos/List" value="Show All PerfilDatos Items"/>
        <br />
        <h:link outcome="/perfilSeguridad/List" value="Show All PerfilSeguridad Items"/>
        <br />
        <h:link outcome="/usuario/List" value="Show All Usuario Items"/>
    </h:body>





</html>
